home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / readOnlyTextStream.h < prev    next >
Text File  |  1992-02-03  |  945b  |  21 lines

  1. typedef enum {
  2.     NX_StreamStart,
  3.     NX_StreamCurrent,
  4.     NX_StreamEnd
  5. } NXStreamSeekMode;
  6.  
  7. /*
  8. This is the protocol an object which wants to be spell-checked must respond to.  Therfore, it is the protocol the delegate of NXSpellServer uses to access the text (see below).
  9.  
  10. This is a purely NeXTstep-encoding protocol, so 16-bit entities (in the KANJI system) will have to be converted to an obvious break character (e.g. space) in the Text object.  In other words, one byte in the buffer must equal one character (it does not support multiple bytes per character).  All formattting, etc., should obviously be completely stripped out.  Only the actual characters should come through this protocol.
  11. */
  12.  
  13. @protocol NXReadOnlyTextStream
  14. - openTextStream;
  15. - (BOOL)seekToCharacterAt:(int)offset relativeTo:(int)seekMode;
  16. - (int)readCharacters:(char *)buffer count:(int)count;
  17. - (int)currentCharacterOffset;
  18. - (BOOL)isAtEOTS;
  19. - closeTextStream;
  20. @end
  21.